package info.ask4research.service.impl;

import info.ask4research.dao.core.AbstractDao;
import info.ask4research.dao.impl.AnswerDAO;
import info.ask4research.model.addons.Answer;
import info.ask4research.service.IAnswerService;
import info.ask4research.service.core.impl.AbstractServiceImpl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service(value="answerService")
@Transactional
public class AnswerService extends AbstractServiceImpl<Answer> implements IAnswerService{

	@Resource(name = "answerDAO")
	private AnswerDAO dao;
	
	@Override
	public AbstractDao<Answer> getDao() {
		return dao;
	}

	@Override
	public void setDao(AbstractDao<Answer> dao) {
		this.dao = (AnswerDAO) dao;
	}

}
